package com.bonorsoft.system.service;

import com.bonorsoft.common.api.Result;
import com.bonorsoft.system.entity.SysMoney;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bonorsoft.system.entity.SysSet;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WilliamYe
 * @since 2020-07-23
 */
public interface SysMoneyService extends IService<SysMoney> {

    String getMoney();

    Integer getStroge();

    void subStroge(Integer subStroge);

    void updateStatus(String openid, String ordersSn);

    void cancelOrder(String openid, String outTradeNo);

    SysMoney paymentConditions(String openid);

    boolean peopleFull();

    SysSet getBasic();

    void saveBasic(SysSet basic);

    void updateBasicById(SysSet basic);

    void updateStroge(Integer sheng);

    Result<?> wxPay(SysMoney money, HttpServletRequest request);

    void updateStatusBySql(String openid, String ordersSn);
}
